Depth measurement assembly with a structured light source and a time of flight camera

ABSTRACT

A depth measurement assembly (DMA) includes an illumination source that projects pulses of light (e.g., structured light) at a temporal pulsing frequency into a local area. The DMA includes a sensor that capture images of the pulses of light reflected from the local area and determines, using one or more of the captured images, one or more TOF phase shifts for the pulses of light. The DMA includes a controller coupled to the sensor and configured to determine a first set of estimated radial distances to an object in the local area based on the one or more TOF phase shifts. The controller determines a second estimated radial distance to the object based on an encoding of structured light and at least one of the captured images. The controller selects an estimated radial distance from the first set of radial distances.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of co-pending U.S. application Ser.No. 16/131,618, filed Sep. 14, 2018, which is incorporated by referencein its entirety.

BACKGROUND

The present disclosure relates generally to systems for determiningdepth of a local area and more specifically to headsets for artificialreality systems that obtain depth information of a local area with astructured light source.

Localizing an object in an arbitrary environment may be useful in anumber of different contexts, ranging from artificial reality toautonomous devices. A number of techniques exist to determine a threedimensional mapping of an arbitrary environment. Some rely on a time offlight (TOF) calculation to determine depth information, while othersmay use structured light patterns. However, both of these techniqueshave a number of drawbacks. A depth camera that is based on structuredlight may under-utilize sensor pixel density, the maximum range islimited by the baseline, and the computational costs are generally onthe higher side. TOF based depth cameras suffer from multi-path error,as well as require multiple pulsed light frequencies during a singleexposure window.

SUMMARY

A structured light-based TOF depth measurement assembly (DMA) isdescribed herein, which leverages the spatial encoding of structuredlight with a TOF calculation. The DMA may be incorporated into a headmounted display (HMD) to determine depth information in an arbitraryenvironment. In an artificial reality system, virtual content may beoverlaid on top of a user's environment based on the depth informationdetermined by the DMA.

A DMA includes an illumination source which is configured to projectpulses of light (e.g., where the intensity pattern is also structuredspatially) at a plurality of temporal pulsing frequencies into a localarea. The DMA includes a sensor configured to capture images of thepulses of light reflected from a local area and determine, using one ormore of the captured images, one or more TOF phase shifts for the pulsesof light. The DMA includes a controller coupled to the sensor andconfigured to determine a first set of estimated radial distances to anobject in the local area based on the one or more TOF phase shifts. Thecontroller determines a second estimated radial distance to the objectbased on an encoding of structured light and at least one of thecaptured images. The controller selects an estimated radial distancefrom the first set of radial distances based in part on the secondestimated radial distance.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of a HMD, in accordance with one or moreembodiments.

FIG. 2 is a cross section of a front rigid body of an HMD, in accordancewith one or more embodiments.

FIG. 3 is a diagram of operation of a conventional structured light DMA,in accordance with one or more embodiments.

FIG. 4 is a diagram of operation of a structured TOF depth sensor, inaccordance with one or more embodiments.

FIG. 5 is a portion of a phase map of a structured TOF depth sensor, inaccordance with one or more embodiments.

FIG. 6A is a pixel timing diagram for a structured TOF depth sensor withthree capture windows, in accordance with one or more embodiments.

FIG. 6B is a pixel timing diagram for a structured TOF depth sensor withaugmented pixels, in accordance with one or more embodiments.

FIG. 7 are timing diagrams relating to the operation of structured TOFdepth sensors that utilize the photodiode sensors of FIGS. 6A and 6B, inaccordance with one or more embodiments.

FIG. 8 is a flow chart of a method for determining a radial distance toan object, in accordance with one or more embodiments.

FIG. 9 is a block diagram of a system environment for providingartificial reality content, in accordance with one or more embodiments.

DETAILED DESCRIPTION OF THE DRAWINGS

Providing artificial reality content to users through a head mounteddisplay (HMD) often relies on localizing a user's position in anarbitrary environment and determining a three dimensional mapping of thesurroundings within the arbitrary environment. The user's surroundingswithin the arbitrary environment may then be represented in a virtualenvironment or the user's surroundings may be overlaid with additionalcontent.

Conventional HMDs include one or more quantitative depth cameras todetermine surroundings of a user within the user's environment.Typically, conventional depth cameras use structured light or time offlight (TOF) to determine the HMD's location within an environment.Structured light depth cameras use an active illumination source toproject known patterns into the environment surrounding the HMD.Structured light uses a pattern of light (e.g., dots, lines, fringes,etc.). The pattern is such that some portions of the environment areilluminated (e.g., illuminated with a dot) and others are not (e.g., thespace between dots in the pattern). Images of the environmentilluminated with the structured light are used to determine depthinformation. However, a structured light pattern causes significationportions of a resulting image of the projected pattern to not beilluminated. This inefficiently uses the pixel resolution of sensorscapturing the resulting image; for example, projection of the pattern bya structured light depth camera results in less than 10% of sensorpixels collecting light from the projected pattern, while requiringmultiple sensor pixels to be illuminated to perform a single depthmeasurement. In addition, the range is limited by the baseline distancebetween camera and illumination, even if the system is not limited bySNR. Furthermore, to get high quality depth from structured light, thecomputational complexity can be large.

TOF depth cameras measure a round trip travel time of light projectedinto the environment surrounding a depth camera and returning to pixelson a sensor array. When a uniform illumination pattern is projected intothe environment, TOF depth cameras are capable of measuring depths ofdifferent objects in the environment independently via each sensorpixel. However, light incident on a sensor pixel may be a combination oflight received from multiple optical paths in the environmentsurrounding the depth camera. Existing techniques to resolve the opticalpaths of light incident on a sensor's pixels are computationally complexand do not fully disambiguate between optical paths in the environment.Furthermore, TOF depth cameras often require multiple image capturesover more than one illumination pulsing frequency. It is often difficultto maintain an adequate signal to noise ratio performance over a shortexposure time, which may limit the ability of the sensor to reduce thetotal capture time.

A structured light-based TOF depth measurement assembly (DMA) isdescribed herein, which leverages the spatial encoding of structuredlight with a TOF calculation. The DMA emits structured light or acombination of structured light and uniform flood illumination into alocal area. A camera assembly accumulates charge associated with a TOFphase shift, and a controller in signal communication with the cameraassembly determines a number of estimated radial distances of an objectin the local area based on the TOF phase shifts. Using spatial lightencoding, the controller selects one of the estimated radial distances,and combines it with a triangulation calculation to determine depthinformation of an object. The DMA thus allows for improved efficiency ofa camera sensor, since structured light can be detected along withuniform flood light. The DMA also improves the signal to noise ratioperformance of conventional TOF depth cameras, since fewer imagecaptures (and associated readout times) are required over the sameexposure time. Additional improvements are described in further detailbelow. The DMA may be incorporated into a head mounted display (HMD) todetermine depth information in an arbitrary environment. In anartificial reality system, virtual content may be overlaid on top of auser's environment based on the depth information determined by the DMA.

Embodiments of the present disclosure may include or be implemented inconjunction with an artificial reality system. Artificial reality is aform of reality that has been adjusted in some manner beforepresentation to a user, which may include, e.g., a virtual reality (VR),an augmented reality (AR), a mixed reality (MR), a hybrid reality, orsome combination and/or derivatives thereof. Artificial reality contentmay include completely generated content or generated content combinedwith captured (e.g., real-world) content. The artificial reality contentmay include video, audio, haptic feedback, or some combination thereof,and any of which may be presented in a single channel or in multiplechannels (such as stereo video that produces a three-dimensional effectto the viewer). Additionally, in some embodiments, artificial realitymay also be associated with applications, products, accessories,services, or some combination thereof, that are used to, e.g., createcontent in an artificial reality and/or are otherwise used in (e.g.,perform activities in) an artificial reality. The artificial realitysystem that provides the artificial reality content may be implementedon various platforms, including a head-mounted display (HMD) connectedto a host computer system, a standalone HMD, a mobile device orcomputing system, or any other hardware platform capable of providingartificial reality content to one or more viewer.

FIG. 1 is a diagram of a HMD 100, in accordance with one or moreembodiments. The HMD 100 includes a front rigid body 120 and a band 130.In some embodiments, portions of the HMD 100 may be transparent orpartially transparent, such as the sides of the HMD 100 on any of thesides of the front rigid body 120. The HMD 100 shown in FIG. 1 alsoincludes an embodiment of a depth measurement assembly (not fully shown)including a camera assembly 180 and an illumination source 170, whichare further described below in conjunction with FIGS. 2-9. The frontrigid body 120 includes one or more electronic display elements of anelectronic display (not shown). The front rigid body 120 optionallyincludes an inertial measurement unit (IMU) 140, one or more positionsensors 150, and a reference point 160.

FIG. 2 is a cross section 200 of a front rigid body 120 of the HMD 100of FIG. 1, in accordance with one or more embodiments. As shown in FIG.2, the front rigid body 120 includes an electronic display 220 and anoptics block 230 that together provide image light to an eye box 240.The eye box 240 is a region in space that is occupied by a user's eye250. In some embodiments, the front rigid body 120 further includes aneye tracker (not shown) for tracking position of the eye 250 in the eyebox 240 (i.e., eye gaze), and a controller 216 coupled to a depthmeasurement assembly (DMA) 210 and the electronic display 220. Forpurposes of illustration, FIG. 2 shows a cross section 200 associatedwith a single eye 250, but another optics block (not shown), separatefrom the optics block 230, provides altered image light to another eyeof the user.

In the embodiment shown by FIG. 2, the HMD 100 includes a DMA 210comprising the illumination source 170, the camera assembly 180, and acontroller 216. Note that in the illustrated embodiments, the DMA 210 ispart of the HMD 100. In alternate embodiments, the DMA 210 may be partof a near-eye display, some other HMD, or some device for depthdetermination. The DMA 210 functions as a structured light-based TOFdepth sensor, such as the structured TOF depth sensor 400 as describedin further detail with reference to FIG. 4.

In various embodiments, the illumination source 170 emits structuredlight with an encoded periodic pattern, which may be any structuredlight pattern, such as a dot pattern, square wave pattern, sinusoidpattern, some other encoded structured light pattern, or somecombination thereof. In some embodiments, the illumination source 170emits structured light that is encoded with a non-periodic pattern(e.g., so that triangulation is not confused by identical periods), suchas, e.g., pseudo-random dot patterns are designed to be pseudo-random.In some embodiments, the illumination source 170 emits a series ofsinusoids that each have a different phase shift into an environmentsurrounding the HMD 100. In various embodiments, the illumination source170 includes an acousto-optic modulator configured to generate asinusoidal interference pattern. However, in other embodiments theillumination source 170 includes one or more of an acousto-optic device,an electro-optic device, physical optics, optical interference, adiffractive optical device, or any other suitable components configuredto generate the periodic illumination pattern.

In various embodiments, the illumination source 170 emits bothstructured light and uniform flood illumination into the local area 260.For example, the projected pulses of light can be composed of floodillumination overlaid with a structured light dot pattern, where eachdot in the dot pattern has a brightness value that is more than abrightness value of the flood illumination. In some embodiments, theillumination source 170 may include a structured light source and asecond light source that emits uniform flood illumination. Addinguniform flood illumination to the structured light improves efficiencyof a sensor pixel utilization of the camera assembly 180, since theadditional light augments any gaps between structured light beams.

In other embodiments, an inverse dot pattern may be projected, whereby asmoothly varying illumination is projected into the area with “darkdots” positioned in various locations. In this embodiment, a dot is alocation in the projection that has a brightness value that is at leasta threshold amount dimmer than spaces between the dots. In someembodiments, a dot is represented by not emitting light, whereas thespace between adjacent dots is represented using at least some level ofillumination. For example, the projected pulses of light can be composedof flood illumination overlaid with a structured light dot pattern,where each dot in the dot pattern has a brightness value that is lessthan a brightness value of the flood illumination. In this scenario,structured light detection may identify regions where illumination ismissing, and the TOF measurement will measure radial depth for areaswhere illumination is projected. The structured light detections can beused as interpolation points to disambiguate adjacent TOF measurements.Accordingly an inverse dot pattern can help increase sensor pixelutilization.

In various embodiments, the illumination source 170 emits light at apulse rate frequency. A plurality of pulse rate frequencies of light maybe emitted into the local area 260 for a single depth measurement. Thusduring a single capture window, the illumination source 170 may emitlight of different pulse rate frequencies. This is described in furtherdetail with reference to FIGS. 5-8.

The camera assembly 180 captures images of the local area 260. Thecamera assembly includes one or more cameras that are sensitive to lightemitted from the illumination source 170. At least one of the one ormore cameras in the camera assembly 180 is used to detect structuredlight and in a structured TOF depth sensor, such as the structured TOFdepth sensor 400 as described in further detail with reference to FIG.4. In some embodiments, the one or more cameras may also be sensitive tolight in other bands (e.g., visible light). The captured images are usedto calculate depths relative to the HMD 100 of various locations withinthe local area 260, as further described below in conjunction with FIGS.3-9. The front rigid body 120 also has an optical axis corresponding toa path along which light propagates through the front rigid body 120. Insome embodiments, the camera assembly 180 is positioned along theoptical axis and captures images of a local area 260, which is a portionof an environment surrounding the front rigid body 120 within a field ofview of the camera assembly 180. Objects within the local area 260reflect incident ambient light as well as light projected by theillumination source 170, which is subsequently captured by the cameraassembly 180.

The camera assembly 180 captures images of the periodic illuminationpatterns projected onto the local area 260 using a sensor comprisingmultiple pixels. The sensor may be the sensor 404 as described infurther detail with reference to FIG. 4. A sensor of the camera assembly180 may be comprised of a 2-dimensional array of pixels. Each pixelcaptures intensity of light emitted by the illumination source 170 fromthe local area 260. Thus the sensor of the camera assembly 180 maydetect structured light emitted by the illumination source 170 andreflected from the local area 260, or a combination of structured lightand uniform flood illumination and/or ambient light reflected from thelocal area 260. In some embodiments, the pixels detect phase shifts ofdifferent phases and light pulse frequencies. In some embodiments, thepixels of a sensor detect different phases and light pulse frequenciesin sequential capture windows. In some embodiments, the pixels of asensor of the camera assembly 180 are augmented pixels that have morethan one on-pixel charge storage regions (also referred to as bins), andcollect charge of different phases during a single capture window. Theseembodiments are described in further detail with respect to FIGS. 6A-7.

The controller 216 determines depth information using information (e.g.,images) captured by the camera assembly 180. The controller 216estimates depths of objects in the local area 260. The controller 216receives charge information from a sensor of the camera assembly 180.The sensor of the camera assembly 180 accumulates charge associated withdifferent phases of light. The sensor of the camera assembly 180 conveysthe charge information to the controller 216. The controller 216estimates radial depth information based on the phase shift of thestructured light detected by the camera assembly 180. The structuredlight encoding is then used to disambiguate between the estimated depthsfrom a TOF calculation. This process is described in further detail withreference to FIGS. 3-9. The controller 216 is described in furtherdetail with reference to FIG. 9.

The electronic display 220 may be configured to display images to theuser in accordance with data received from a console (not shown in FIG.1B), such as the console 910 as described in further detail withreference to FIG. 9. The electronic display 220 may emit, during adefined time period, a plurality of images. In various embodiments, theelectronic display 220 may comprise a single electronic display ormultiple electronic displays (e.g., a display for each eye of a user).Examples of the electronic display include: a liquid crystal display(LCD), an organic light emitting diode (OLED) display, an inorganiclight emitting diode (ILED) display, an active-matrix organiclight-emitting diode (AMOLED) display, a transparent organic lightemitting diode (TOLED) display, some other display, a projector, or somecombination thereof.

The optics block 230 magnifies image light received from the electronicdisplay 220, corrects optical aberrations associated with the imagelight, and the corrected image light is presented to a user of the HMD100. At least one optical element of the optics block 230 may be anaperture, a Fresnel lens, a refractive lens, a reflective surface, adiffractive element, a waveguide, a filter, or any other suitableoptical element that affects the image light emitted from the electronicdisplay 220. Moreover, the optics block 230 may include combinations ofdifferent optical elements. In some embodiments, one or more of theoptical elements in the optics block 230 may have one or more coatings,such as anti-reflective coatings, dichroic coatings, etc. Magnificationof the image light by the optics block 230 allows elements of theelectronic display 220 to be physically smaller, weigh less, and consumeless power than larger displays. Additionally, magnification mayincrease a field-of-view of the displayed media. For example, thefield-of-view of the displayed media is such that the displayed media ispresented using almost all (e.g., 110 degrees diagonal), and in somecases all, of the field-of-view. Additionally, in some embodiments, theamount of magnification may be adjusted by adding or removing opticalelements.

FIG. 3 is a diagram of operation of a conventional structured lightbased depth determination device 300, in accordance with one or moreembodiments. In a conventional structured light based depthdetermination device, a structured light source 302 emits structuredlight into an environment. The structured light has an encodedstructured pattern and may be pulsed at a pulse frequency. Thestructured light is projected into an environment, and may reflect offof a surface or any three dimensional object in the environment backtowards the sensor 304. Any surface or three dimensional object in theenvironment distorts the output pattern from the structured light source302. Using a triangulation calculation, a controller (not shown) thatreceives information from the sensor 304 can compare the distortedpattern to the emitted pattern to determine a distance R 316 of anobject in the environment from the sensor 304.

The triangulation calculation relies on the following relationship:

$\begin{matrix}{R = {B\frac{\sin\mspace{14mu}(\theta)}{\sin\mspace{14mu}\left( {\alpha + \theta} \right)}}} & (1)\end{matrix}$where R is the distance R 316 of an object from the sensor 304, B is thebaseline 306 distance from the structured light source 302 to the sensor304, θ is θ 314 the angle between the projected light and the baseline306, and α is a 312 the angle between the reflected light off of anobject and the sensor surface 304. The baseline distance 306 B and theemitted light angle θ 314 are fixed and defined by the structure of thestructured light based depth determination device and the encodedstructured light. To determine a 312, a controller compares the2-dimensional image of pixel intensities to the known structured patternto identify the originating pattern from the structured light source302. In a conventional structured light based depth determinationdevice, this process would entail a full epipolar code search 308 acrossthe full range of the structured light encoding. Following determiningthe value of α 312, the controller carries out a triangulationcalculation using the relationship (1).

This conventional method of determining the location of an object in theenvironment has a number of drawbacks. The full epipolar code search 308may require longer computational time, thus increasing the time betweenoutput light from the structured light source 302 and a controllerregistering the presence and location of an object in the environment.This delay may be noticeable in an example in which the conventionalstructure light based depth determination device is used in anartificial reality system, since determination of the location of anobject may be a step in displaying virtual content to a user, leading toa visual lag in the displayed image. Additionally, the conventionalstructured light based depth determination device has a range limit 310that is defined by the baseline 306 distance from the structured lightsource 302 to the sensor 304. The longer the distance of the baseline306 between the structured light source 302 to the sensor 304, thegreater the depth range of the conventional structured light based depthdetermination device. In cases where the conventional structured lightbased depth determination device is incorporated into another device forwhich a form factor is important, this may lead to a range limit of adevice or a size constraint on the device in order to achieve a largeenough range. Furthermore, structured light contains patternedconstellations of light surrounded by areas without illumination. Thisleads to a significant non-illuminated portion of the image, which issome cases may lead to underutilization of the pixels in a sensor, ifthe sensor 304 is a pixel-based sensor (e.g., less than 10% of a sensorarray collects light from the active structured light source 302).

FIG. 4 is a diagram of a structured TOF depth sensor 400, in accordancewith one or more embodiments. The structured TOF depth sensor 400 may bean embodiment of the DMA 210. In a structured TOF depth sensor 400, anillumination source 402 is combined with a TOF sensor 404 to leverageboth a TOF calculation with a structured light encoding. Theillumination source 402 may be the illumination source 170, while theTOF sensor 404 may be part of the camera assembly 180. The structuredTOF depth sensor 400 also includes a controller 412, which may be thecontroller 216 of the DMA 210 as described in further detail withreference to FIG. 2. The combination of the structured light encodingwith a TOF calculation allows for a reduced baseline 406 in comparisonto the baseline 306 without sacrificing the depth of the sensing range.The structured TOF depth sensor 400 also reduces the computationassociated with a code search, since a TOF calculation limits the fullepipolar code search 308 to a TOF limited epipolar search 408. This isdescribed in further detail below.

In some embodiments, the illumination source 402 emits structured lightinto an environment, such as the local area 260. The illumination source402 may emit structured light at one or more pulse frequency rates. Insome examples, the illumination source 402 sequentially emits structuredlight at different temporal pulsing frequency rates. This is describedin further detail with reference to FIGS. 5-9. In some embodiments, theillumination source 402 emits any structured light pattern, such as asymmetric or quasi-random dot pattern, grid, horizontal bars, a periodicstructure, or any other pattern. The structured light is projected intoan environment, and may reflect off of a surface or any threedimensional object in the environment. The reflected structured light isthen directed from the object back towards the sensor 404. In someembodiments, the illumination source 402 or any other light sourcedescribed herein emits structured light simultaneously and in additionto a uniform flood illumination. Thus the illumination source 402 mayemit both structured light and uniform flood illumination. In otherembodiments, the illumination source 402 or any other light sourcedescribed herein may emit structured light, and a second light sourceemits uniform flood illumination.

The sensor 404 may be a fast photodiode array, or any other TOF sensorwith a two-dimensional pixel array. The sensor 404 may be one of thesensors located in the camera assembly 180. The controller 412determines, from information provided by the sensor 404, a time thatlight has taken to travel from the illumination source 402 to the objectin the environment and back to the sensor 404 plane. This may bedetermined by accumulating charge at a pixel associated with differentphases of reflected light. The pixel information is conveyed to thecontroller 412, which then performs a TOF phase shift calculation togenerate estimated radial depths of an object in a local area. In someexamples, the sensor 404 may measure different sets of phase shifts fordifferent output pulse frequencies of the illumination source 402 duringdifferent exposure windows. This is described in further detail withreference to FIGS. 5-9. Unlike the sensor 304 in a conventionalstructured light based depth determination device, the sensor 404 thusmeasures a plurality of phase shifts of the structured light source,rather than accumulating charge for computing a triangulationmeasurement.

Referring to FIG. 4, a controller 412 causes an illumination source 402to emits pulsed structured light two different pulsing frequencies(e.g., 40 MHz and 100 MHz). A sensor 404 captures reflected pulses, andthe controller determines a set of possible distances using the captureddata and TOF depth determination techniques.

The TOF measurement of the illumination source 402 produced from theplurality of phase shifts detected by the sensor 404 may not be fullydisambiguated. For example, using a single temporal pulsing frequency,the TOF measurement of the controller 412 may produce several depthestimates that each result from a 2π ambiguity in the TOF calculation.Thus the TOF measurement may result in a plurality of phase shiftestimates that each are possible solutions to a TOF calculation and areseparated from each other by a factor of 2π. Each of the plurality ofphase shift estimates results in a different depth measurement of anobject. This is shown in FIG. 4 as the phase estimate 410 a, phaseestimate 410 b and phase estimate 410 c (collectively 410). Estimates410 define discrete regions of possible radial depth of a detectedobject in an environment.

To distinguish between the depth estimates produced from the TOFcalculation, the controller 412 uses depth information from structuredlight in at least one of the images captured by the sensor 404. Thus thecontroller 412 may compare the image produced by the sensor 404 to theencoding of the illumination source 402 pattern. The controller 412 maybe the controller 216 as shown in FIG. 2. This may be done by thecontroller 412 using a lookup table (LUT) containing the structuredlight encoding. Thus instead of a full epipolar code search 308, thecontroller 412 performs a TOF limited epipolar search 408 in the regionsof the estimates made with a TOF calculation. By comparing the imagefrom the sensor 404 to the structured light encoding, the controller 412disambiguates the TOF estimate and selects one of the phase estimates asthe correct phase and the corresponding correct radial distance from aset of radial depth estimates. Note that the use of TOF along with SLallows for quick determination of depth, and can use a relatively smallbaseline (as an accuracy of the SL only has to be enough to disambiguatethe more accurate TOF measurements. Accordingly, the structured TOFdepth sensor allows for a smaller baseline 406 in comparison to thebaseline 306. In some examples, the baseline 406 may be 50 mm or less(e.g., 10 mm).

FIG. 5 is a portion of a phase map 500 of a structured TOF depth sensor,in accordance with one or more embodiments. In some examples, the phasemap 500 is produced from a structured TOF depth sensor, as described inFIG. 4. Thus the phase map 500 may be detected by the sensor 404 asdescribed in further detail with reference to FIG. 4. The phase map 500shows the disambiguated depth estimates produced from a TOF calculationfollowing emission of structured light at two different pulsefrequencies.

A structured light source may project structured light at a first phaseshift frequency 502 into an environment. The first phase shift frequency502 is a phase shift between 0 and 2π that corresponds to a firsttemporal frequency at which pulses are output (e.g. typical ranges are1-350 MHz, but could possibly go even higher, e.g., up to 1 GHz). Thestructured light source may then project structured light at a secondphase shift frequency 504 that is different from the first phase shiftfrequency 502. The second phase shift frequency 504 is a phase shiftbetween 0 and 2π that corresponds to a second temporal frequency atwhich pulses are output. For example, the structured light projector mayoutput pulses at 10 MHz and may also emit pulses at 50 MHz. In someexamples, the light emitted into a local environment at the first phaseshift frequency 502 may be structured light, whereas the light emittedinto a local environment at a second phase shift frequency 504 may beuniform flood light or any non-encoded light. The projection of light atthe first phase shift frequency 502 and the second phase shift frequency504 may be at different times, and correspond to different exposureswindows of a sensor (e.g., the sensor 404). Timing of the structuredlight projection and sensing windows is described in further detail withreference to FIGS. 6A-7.

The phase map 500 shows the ambiguity in the TOF calculation. The y-axisshows the radial distance 506. The phase map 500 represents thedetection of an object in an environment at a distance from a structuredTOF depth sensor. The set of detected ranges, 508 a, 508 b, 508 c, and508 d (collectively 508) each represent phase-wrapped solutions to a TOFcalculation and correspond to a set of estimated radial distances basedon a phase shift detected by a sensor. Note what is illustrated isreally only a portion of the phase map 500 as there would be extra setsof detected ranges proceeding out to infinity (note in practice, therange may be limited by the amount of light emitted into the scene andthe reflectivity of the objects being imaged) which are omitted for easeof illustration. The set of detected ranges 508 are referred to hereinas estimated radial distances. Thus the solutions in the detected range508 a are separated by the detected range 508 b by a 2π phase ambiguityas described in further detail above. For example, each of the detectedranges 508 may correspond to the regions shown in FIG. 4 of the TOFlimited epipolar search 408 and the phase estimates 410 a, 410 b and 410c. Using the phase map 500, a controller compares the detected ranges508 to a structured light encoding. The controller may be the controller412. The structured light encoding may be stored in a look up table(LUT). Thus instead of a full epipolar code search 308, a controllerperforms a TOF limited epipolar search 408 in the regions of theestimates made with a TOF calculation. In some embodiments, based on acomparison between the detected ranges 508 and a LUT, the controllerselects one of the detected ranges 508. The controller then performs atriangulation calculation using the relationship (1) to produce atriangulation depth estimate. In some embodiments, a controller maydivide a local area illuminated by an illumination source into a numberof different regions. In some embodiments, the controller identifies acorresponding region of estimated radial distances from a TOFcalculation to region of triangulation depth estimates. The controllerthus matches regions of TOF calculations to regions of triangulationdepth estimates. In some embodiments, the controller then selects theradial depth estimate that is within a threshold distance of thetriangulation depth estimate. In some embodiments, the controllerselects the estimated radial distance based in part on a LUT and thesecond estimated radial distance. In some embodiments, the controllerselects the estimated radial distance using machine learning. In someembodiments, in regions without structured light illumination ortriangulation depth estimates, a controller may back-fill estimatedradial distances from TOF calculations and/or interpolate betweenregions. In terms of interpolation, in some embodiments a uniformillumination pattern is modulated at some regions with brighter spots(e.g. dots) or null spots (e.g. dark dots—inverse dot pattern). In thisscenario, nearly all pixels would have TOF information, thus increasingtheir utility, whereas only a subset would have SL information. But theSL information could be used to locally disambiguate neighboring regionsof TOF estimates via, for example, local interpolation. Thus one of theestimated ranges in the detected ranges 508 is selected as the truedistance of an object by comparing the results of the triangulationcalculation to the detected ranges.

Combining the TOF calculation based on a phase shift with atriangulation calculation based on the structured light encoding allowsfor disambiguation of the TOF phase shift solutions shown in the phasemap 500 without the need for detection of an object with additionaloutput light frequencies. Thus the total number of TOF captures within alimited exposure window of a sensor can be reduced, which is discussedin further detail below. The structured light TOF sensor also allows forreduced accuracy in a triangulation structured light calculation, sincethe structured light estimate may only need to be precise enough todisambiguate between the solutions of the TOF calculation, i.e., betweeneach of the detected ranges 508, rather than across a full depth range,as shown in FIG. 4. This also allows for a substantial decrease in thebaseline distance between a structured light source and a sensor (suchas the baseline 406) without sacrificing the detection capabilities ofthe structured light TOF sensor. A reduced baseline may allow for asmaller form factor of an HMD or any other device in which a structuredTOF sensor is incorporated. In addition, the complexity of thestructured light computational algorithm can be reduced since loweraccuracy and precision is required. In some embodiments, the accuracy ofthe structured light estimation may be in the range of 0.5 to 3 meters.

Combining the structured light encoding with the TOF solutionsadditionally reduces multi-path artifacts from the TOF sensing, which isa source of error in conventional TOF sensing. In a conventional TOFsensor, it is difficult to distinguish between light incident on thesensor that is reflected off of an object and light that has madeseveral reflections before reaching the sensor (i.e. multi-path light).However, by comparing TOF solutions to a structured light encoding,signals that do not match the structured light pattern can be rejectedand removed from depth estimates.

FIG. 6A is a pixel timing diagram 600 for a structured TOF depth sensorwith three raw capture windows, in accordance with one or moreembodiments. The pixel timing diagram 600 may be for pixels located onthe sensor 404 as shown in FIG. 4. A temporal pulsing frequency 602 anda temporal pulsing frequency 610 may refer to pulses produced by theillumination source 402. The pixel timing diagram 600 captures lightfrom the illumination source 402 that is reflected from the local areaas raw data. The pixel timing diagram 600 is an improvement over otherconventional pixel timing diagrams, since the combination of thestructured light encoding with TOF depth estimates allows for fewertotal captures within a single exposure window. Thus, timing windowsthat were previously used for sensor charge readout and/or additionalimage captures can now be used for additional image exposure, increasingSNR and therefore depth precision.

In a structured TOF depth sensor (e.g., the structured TOF depth sensor400), an exposure window has at least three capture windows of raw dataper temporal pulsing frequency, allowing for a reduction in the totalnumber of captures and an improvement in signal-to-noise ratio duringeach of the phase captures. In some embodiments, there may be more thanthree capture windows for each temporal pulsing frequency. In someembodiments, there may be more than two temporal pulsing frequencies. Insome embodiments, the number of capture windows for to differenttemporal pulsing frequencies is different from each other (e.g., 4 for afirst temporal pulsing frequency and 3 for a second temporal pulsingfrequency).

In the illustrated figure, there are three capture windows of raw dataat each temporal pulsing frequency, specifically raw data 604, 606, 608at the temporal pulsing frequency 602, and raw data 612, 614, and 616 atthe temporal pulsing frequency 604. Note that there is a phasedifference between each raw data for each temporal pulsing frequency.For example, the raw data 606, the raw data 608 and the raw data 610,while all are at the same temporal pulsing frequency 602 (e.g., 10 MHz),all are raw intensity images acquired for different phase offsetsbetween the sensor 404 and the light reflected from the local area fromthe illumination source 402. In the same manner, the raw data 612, theraw data 614, and the raw data 616 all are raw intensity images acquiredfor different phase offsets between the sensor 404 and the lightreflected from the local area from the illumination source 402. Thedifference in phase may be accomplished by, e.g., adjusting a gatedshutter window that controls a time when a pulse is emitted and/or whenthe structured TOF depth sensor is active relative to when a pulse isemitted. Each raw data corresponds to at least one pulse detected fromthe illumination source 402 that is reflected from the local area. Inpractice, each detected pulse may have a low signal-to-noise (SNR)value, and multiple detected pulses (e.g., 100s, 1000s, etc.) arecaptured (to increase SNR) to make up a single raw data before thecaptured raw data is read out. As discussed below, the raw data for eachtemporal pulsing frequency is used by the structured TOF depth sensor todetermine a corresponding aggregate phase.

A structured light illumination source (e.g., the illumination source402) projects structured light at the first temporal pulsing frequency602 into an environment, where the projected structured light has afirst phase. During this first time period, the structured TOF depthsensor is capturing reflected pulses as raw data 606. After somethreshold number of time has passed (e.g., corresponding to a thresholdnumber of detected pulses) the structured light illumination sourceperforms a readout 620 of the raw data 606. The structured TOF depthsensor then alters the phase to a second phase that is different fromthe first phase (e.g., corresponding to a different timing offsetbetween illumination pulses and sensor shutter timing), and projectsstructured light at the first temporal pulsing frequency 602 into theenvironment, where the projected structured light has the second phase.During this time period, the structured TOF depth sensor is capturingreflected pulses as raw data 608. After some threshold number of timehas passed (e.g., corresponding to a threshold number of detectedpulses) the structured light illumination source performs a readout 620of the raw data 608. The structured TOF depth sensor then alters thephase to a third phase that is different from the first and secondphases, and projects structured light at the first temporal pulsingfrequency 602 into the environment, where the projected structured lighthas the third phase. During this time period, the structured TOF depthsensor is capturing reflected pulses as raw data 610. After somethreshold number of time has passed (e.g., corresponding to a thresholdnumber of detected pulses) the structured light illumination sourceperforms a readout 620 of the raw data 610. The raw data 606, the rawdata 608, and the raw data 610 are used by the structured TOF depthsensor to determine a first aggregate phase for the temporal pulsingfrequency 602. Note that an aggregate phase has a plurality of valuesthat can differ from pixel to pixel.

Following these three capture windows and their associated readouts 120,the structured light illumination source projects structured light atthe second temporal pulsing frequency 604 into an environment, where theprojected structured light has a first phase. During this time period,the structured TOF depth sensor is capturing reflected pulses as rawdata 612. After some threshold number of time has passed (e.g.,corresponding to a threshold number of detected pulses) the structuredlight illumination source performs a readout 620 of the raw data 612.The structure light illumination source then alters the phase to asecond phase that is different from the first phase, and projectsstructured light at the second temporal pulsing frequency 602 into theenvironment, where the projected structured light has the second phase.During this time period, the structured TOF depth sensor is capturingreflected pulses as raw data 614. After some threshold number of timehas passed (e.g., corresponding to a threshold number of detectedpulses) the structured light illumination source performs a readout 620of the raw data 614. The structure light illumination source then altersthe phase to a third phase that is different from the first and secondphases, and projects structured light at the second temporal pulsingfrequency 604 into the environment, where the projected structured lighthas the third phase. During this time period, the structured TOF depthsensor is capturing reflected pulses as raw data 616. After somethreshold number of time has passed (e.g., corresponding to a thresholdnumber of detected pulses) the structured light illumination sourceperforms a readout 620 of the raw data 616. The raw data 612, the rawdata 614, and the raw data 616 are used by the structured TOF depthsensor to determine a second aggregate phase for the temporal pulsingfrequency 604.

While the TOF depth estimates may not be fully disambiguated as a resultof the phase measurements from the temporal pulsing frequency 602 andthe temporal pulsing frequency 604, unlike in a conventional TOF sensor,this does not lead to a difficulty in determining depth informationsince the phase generated depth estimates are later fully disambiguatedby a structured light encoding. Because the total exposure time isdivided between fewer captions, the signal-to-noise ratio of the signalsdetected during each of the phase captures may be better than in aconventional TOF sensor, leading to improved TOF depth estimates. Theidle period is period of time before capture of the raw data 606repeats.

FIG. 6B is a pixel timing diagram 620 for a structured TOF depth sensorwith augmented pixels, in accordance with one or more embodiments. Thepixel timing diagram 620 may be used for sensors with augmented pixelsthat each contain multiple charge storage regions (e.g., 3 or morecharge storage regions) that store charge separately. An augmented pixelmay be fast photodiode sensor that are configured to sequentially storeexcited photo-electrons into at least three different on-pixel storagesites.

In the illustrated figure, there is one capture window of raw data ateach temporal pulsing frequency, specifically raw capture 624 and rawcapture 628 at temporal pulsing frequency 630 and temporal pulsingfrequency 632, respectively. Note that within each raw capture there areactually multiple captures of raw data at different phases, where eachof the different phases is captured in a different charge storageregion. For example, in the case of an augmented pixel including threecharge storage regions, the raw capture 624 is subdivided into a seriesof captures of raw data at three different phases, e.g., correspondingto first phase, a second phase, and third phase. Each raw datacorresponds to at least one pulse detected from the illumination source402 that is reflected from the local area. As noted above, in practice,each detected pulse may have a low SNR value, and multiple detectedpulses (e.g., 100s, 1000s, etc.) are captured (to increase SNR) to makeup a single raw data before the captured raw data is readout.

In some embodiments, the raw capture 624 and the raw capture 628captures raw data in an interleaved manner. For example, the structuredlight illumination source (e.g., the illumination source 402) projectsstructured light at the temporal pulsing frequency 630 into anenvironment, where the projected structured light has a first phase. Thestructured TOF depth sensor captures raw data for a single pulsecorresponding to the first phase which is stored in charge storageregion 1 for each of the augmented pixels. The structured TOF depthsensor then alters the phase (e.g., using a gated shutter window) to asecond phase that is different from the first phase, and projectsstructured light at the temporal pulsing frequency 630 into theenvironment, where the projected structured light has the second phase.The structured TOF depth sensor captures raw data for a single pulsecorresponding to the second phase which is stored in charge storageregion 2 for each of the augmented pixels. The structured TOF depthsensor then alters the phase to a third phase that is different from thefirst phase and the second phase, and projects structured light at thetemporal pulsing frequency 630 into the environment, where the projectedstructured light has the third phase. The structured TOF depth sensorcaptures raw data for a single pulse corresponding to the third phasewhich is stored in charge storage region 3 for each of the augmentedpixels. This process then repeats in series some number of times, afterwhich the captured raw data in charge storage regions 1, 2, and 3 foreach of the pixels is readout 620. The number of times being based on anestimated SNR for the captured raw data for each of the three phases.The raw data in the raw capture 624 from the three charge storageregions of each pixel are used by the structured TOF depth sensor todetermine a first aggregate phase for the temporal pulsing frequency630.

The process then repeats using a temporal pulsing frequency 632, whichis different from the temporal pulsing frequency 630 (e.g., the temporalpulsing frequency 632 may be 40 MHz and the temporal pulsing frequency630 may be 100 MHz). The structured light illumination source projectsstructured light at the temporal pulsing frequency 632 into anenvironment, where the projected structured light has a first phase. Thestructured TOF depth sensor captures raw data for a single pulsecorresponding to the first phase which is stored in charge storageregion 1 for each of the augmented pixels. The structured TOF depthsensor then alters the phase to a second phase that is different fromthe first phase, and projects structured light at the temporal pulsingfrequency 632 into the environment, where the projected structured lighthas the second phase. The structured TOF depth sensor captures raw datafor a single pulse corresponding to the second phase which is stored incharge storage region 2 for each of the augmented pixels. The structuredTOF depth sensor then alters the phase to a third phase that isdifferent from the first phase and the second phase, and projectsstructured light at the temporal pulsing frequency 632 into theenvironment, where the projected structured light has the third phase.The structured TOF depth sensor captures raw data for a single pulsecorresponding to the third phase which is stored in charge storageregion 3 for each of the augmented pixels. This process then repeats inseries some number of times, after which the captured raw data in chargestorage regions 1, 2, and 3 for each of the augmented pixels is readout620. The number of times being based on an estimated SNR for thecaptured raw data for each of the three phases. The raw data in the rawcapture 628 from the three charge storage regions of each pixel is usedby the structured TOF depth sensor to determine a second aggregate phasefor the temporal pulsing frequency 632.

Note that in the above example, the raw capture 624 and the raw capture628 captures raw data in an interleaved manner. However, in otherembodiments raw data may be captured in other orders, e.g., a linearmanner. For example, instead of moving from charge storage region 1, tocharge storage region 2, to charge storage region 3, and then back tocharge storage region 1 on a pulse by pulse basis building the SNR foreach of these in an incremental manner, the structured TOF depth sensormay capture raw data in charge storage regions 1 (first phase) for anumber of times corresponding to a target SNR, adjust the phase to thesecond phase and capture raw data in charge storage regions 2 (secondphase) for a number of times corresponding to a target SNR, and adjustthe phase to the third phase and capture raw data in charge storageregions 3 (second phase) for a number of times corresponding to a targetSNR. The idle period is period of time before the raw capture 624repeats.

Similarly to the timing diagram 600, the timing diagram 620 may notallow for the full disambiguation of the TOF depth estimates, but withthe addition of the structured light encoding, the depth estimate may belater fully disambiguated. Note that relative to FIG. 6A there aresubstantially less readouts 120 in 6B, which allows for betteroptimization of time usage (e.g., less loss of time to readouts).

FIG. 7 are timing diagrams 700, 710 and 720 relating to the operation ofstructured TOF depth sensors that utilize the photodiode sensors ofFIGS. 6A and 6B, in accordance with one or more embodiments. The timingdiagram 710 may correspond to the pixel timing diagram 600 of FIG. 6A,whereas the timing diagram 720 may correspond to the pixel timingdiagram 620 of FIG. 6B.

The timing diagrams 700, 710 and 720 include time 702 on the horizontalaxis. The time interval shown in FIG. 7 is divided between two timeintervals 706 a and 706 b (collectively 706). During the first timeinterval 706 a, a light source projects light (e.g., structured light)into an environment. This is indicated by the light power 704 a. Thelight source may be the illumination source 402 as described in furtherdetail with reference to FIG. 4. The light power 704 a indicates thatthe light source projects light into an environment for a duration oftime that is less than the time interval 706 a. Similarly, during timeinterval 706 b, a light source projects light into an environment asindicated by the light power 704 b. The light power 704 a and the lightpower 704B produce light of a temporal pulsing frequency. Note that thediagram 700 is basically of two pulses of a series of pulses at thetemporal pulsing frequency. Light emitted into the environment as aresult of the light power 704 a and 704 b may reflect off of an objectin an environment. The reflected light is incident on a TOF sensor, suchas the TOF sensor 404.

In the timing diagram 710, three differently phased raw captures areshown, raw capture 712 a and 712 b, raw capture 714 a and 714 b, and rawcapture 716 a, and 716 b. Note that in this embodiment, only one of theraw captures 712 a, 714 a, 716 a would occur over the time interval 706a and only one of the raw captures 712 b, 714 b, 716 b would occur overthe time interval 706 b, and that they are shown together simply forease of illustration. For example, the raw captures 712 a and 712 bcould correspond to a capture of pulses of the raw data 606, the rawcaptures 714 a and 714 b could correspond to a capture of pulses of theraw data 608, and the raw capture 716 a and 716 b could correspond to acapture of pulses of the raw data 610. Note the relative difference intiming between each raw capture and its corresponding light power.Accordingly, raw captures 712 a, 712 b, raw captures 714 a, 714 b, andraw captures 716 a, 716 b have different phases relative to each other.

In the pixel charge diagram 720, three differently phased raw capturesare shown, raw capture 722 a and 722 b, raw capture 724 a and 724 b, andraw capture 726 a, and 726 b. Note that in this embodiment, each of theraw captures 722 a, 724 a, 726 a occurs over the time interval 706 a,and each of the raw captures 722 b, 724 b, 726 b occurs over the timeinterval 706 b. For example, the raw captures 722 a, 724 a, 726 a andthe subsequent raw captures 722 b, 724 b, 726 b could correspond tocapture of pulses in the raw capture 624. Note that in the illustrateddiagram there is a small period between adjacent raw captures of a giventiming window. During these small periods, accumulated charge may betransferred to a drain (e.g., stored and not collected, or transferredto the substrate, etc.) In other embodiments, this time period may beminimized (e.g., no space). In some embodiments, the timing betweenadjacent raw captures may be different (e.g., a time between the rawcapture 722 a and the raw capture 724 a is different than a time betweenthe raw capture 724 a and the raw capture 726 a).

FIG. 8 is a flow chart of a process 800 for determining a radialdistance to an object, in accordance with one or more embodiments. Theprocess 800 may be performed by a DMA (e.g., the DMA 210). In someembodiments, some or all of the steps may be performed and/or sharedwith other entities (e.g., a processor of a HMD, a console, etc.)Likewise, embodiments may include different and/or additional steps, orperform the steps in different orders.

The DMA projects pulses 802 of light at one or more pulse frequenciesinto a local area. The pulses of light may be projected by a lightsource (e.g., the illumination source 170) in accordance withinstructions from a controller (e.g., the controller 216). In someembodiments, pulse frequencies of projected light may be between 10-200MHz. The projected light may be structured light. In some embodiments,the projected light may include one or more pulses of unpatterned floodillumination that are interspersed with the pulses of structured light.The DMA may communicate with a light source via a controller, such as acontroller 412, which instructs a light source to project pulses oflight at a pulse frequency.

The DMA captures images 804 of pulses of light reflected from the localarea. The DMA captures the images using a camera assembly (e.g., thecamera assembly 180). The capture assembly captures images in accordancewith instructions from a controller of the DMA, such as the controller412.

The DMA determines 806, using one or more of the captured images, one ormore TOF phase shifts for the pulses of light. This may be based in parton the charge accumulated by pixels of a sensor of the camera assemblyfor each of the phase shifts shown in FIGS. 6A-7. TOF phase shifts aredescribed in further detail with reference to FIG. 4. The TOF phaseshifts are related to the pixel charge accumulation as described infurther detail with reference to FIG. 4. The one or more TOF phaseshifts may be determined by a controller of the DMA, such as thecontroller 412.

The DMA determines 808 a first set of estimated radial distances to anobject in the local area based on the one or more TOF phase shifts. Thismay be the phase estimates 410 shown in FIG. 4, and/or the detectedranges shown in FIG. 5. The estimated radial distances are based oncalculations described in reference to FIG. 4. The one or more TOF phaseshifts may correspond to different pulse frequencies of emitted light.The first set of estimated radial distances may be determined by acontroller of the DMA, such as the controller 412.

The DMA determines 810 a second estimated radial distance to the objectbased on an encoding of the structured light and at least one of thecaptured images. The at least one of the captured images is an image ofthe local area that is illuminated with a structured light pattern. Thecontroller, such as the controller 412, determines depth information forobjects in the local area using the at least one image.

The DMA selects 812 an estimated radial distance from the first set ofradial distances, based in part on the second estimated radial distance.In some embodiments, the DMA selects the estimated radial distance basedin part on the second estimated radial distance being within a thresholddistance of the selected estimated radial distance. Selection may becarried out by a controller of the DMA, such as the controller 412. Thismay fully disambiguate the estimated radial distances from the TOF phaseshifts, and based in part on consulting a LUT with a structured lightencoding. Disambiguated estimated radial distances may refer to a 2πambiguity in the estimated radial distances, as described in furtherdetail with reference to FIG. 4. This is the final depth estimate of anobject in an environment for a region of a local area. The thresholddistance may be e.g., within 10% of the estimated radial distance. Insome embodiments, the DMA selects the estimated radial distance based inpart on a LUT and the second estimated radial distance. In thisinstance, the DMA inputs the second estimated radial distance to the LUTto determine the estimated radial distance. In some embodiments, the DMAselects the estimated radial distance uses machine learning. In thisinstance the DMA is trained such that given the second estimated radialdistance it is able to select the estimated radial distance. The DMA mayuse the final depth estimate to determine a depth map of a localenvironment, such as the local area 260. The DMA may divide a local area260 into a number of different regions, and collect depth estimates asdescribed above for each region. In some embodiments, a DMA mayinterpolate between regions. A full depth map of a local area may thenbe constructed from multiple iterations of the method 800.

System Overview

FIG. 9 is a block diagram of a system environment 900 for providingartificial reality content, in accordance with one or more embodiments.The system environment 900 shown in FIG. 9 may provide artificialreality content to users in various embodiments. Additionally oralternatively, the system environment 900 generates one or more virtualenvironments and presents a virtual environment with which a user mayinteract to the user. The system environment 900 shown by FIG. 9comprises a head mounted display (HMD) 905 and an input/output (I/O)interface 915 that is coupled to a console 910. While FIG. 9 shows anexample system environment 900 including one HMD 905 and one I/Ointerface 915, in other embodiments any number of these components maybe included in the system environment 900. For example, there may bemultiple HMDs 905 each having an associated I/O interface 915, with eachHMD 905 and I/O interface 915 communicating with the console 910. Inalternative configurations, different and/or additional components maybe included in the system environment 900. Additionally, functionalitydescribed in conjunction with one or more of the components shown inFIG. 9 may be distributed among the components in a different mannerthan described in conjunction with FIG. 9 in some embodiments. Forexample, some or all of the functionality of the console 910 is providedby the HMD 905.

The head mounted display (HMD) 905 presents content to a user comprisingaugmented views of a physical, real-world environment withcomputer-generated elements (e.g., two dimensional (2D) or threedimensional (3D) images, 2D or 3D video, sound, etc.) or presentscontent comprising a virtual environment. In some embodiments, thepresented content includes audio that is presented via an externaldevice (e.g., speakers and/or headphones) that receives audioinformation from the HMD 905, the console 910, or both, and presentsaudio data based on the audio information. An embodiment of the HMD 905is further described in conjunction with FIGS. 1 and 2. The HMD 905 mayalso be a near-eye display.

The HMD 905 includes a DMA 920, an electronic display 925, an opticsblock 930, one or more position sensors 935, and an IMU 940. The HMD 905may be the HMD 100 as shown in FIGS. 1-2. The DMA 920 may be the DMA210, the electronic display 925 may be the electronic display 220, andthe optics block may be the optics block 230 as described in furtherdetail with respect to FIG. 2. The position sensors 935 may be theposition sensors 150 and the IMU 940 may be the IMU 140 as described infurther detail with respect to FIG. 1. Some embodiments of the HMD 905have different components than those described in conjunction with FIG.9. Additionally, the functionality provided by various componentsdescribed in conjunction with FIG. 9 may be differently distributedamong the components of the HMD 905 in other embodiments.

The DMA 920 captures data describing depth information of an areasurrounding the HMD 905. The DMA 920 includes a light source, such asthe illumination source 402 and/or the illumination source 170, whichprojects light into an environment, such as the local area 260 as shownin FIG. 2. The DMA 920 includes a camera assembly, such as the cameraassembly 180. A sensor which collects charge relating to a TOF phaseshift of reflected light, such as the sensor 404, may be one element ofthe camera assembly. A controller of the DMA determines a number ofradial depth estimates from the TOF phase shifts. A structured lightencoding is used to select from the radial depth estimates, and a seconddepth estimation from a triangulation calculation of a captured image iscombined with the estimated radial depth. The triangulation calculationmay be of lessor resolution than the estimated radial depth, however itis sufficient to disambiguate between a number of radial depthestimates. The radial depth estimate is then combined with atriangulation calculation to determine a depth of an object in theenvironment. This process is described in further detail with referenceto FIGS. 2-8.

The electronic display 925 displays 2D or 3D images to the user inaccordance with data received from the console 910. In variousembodiments, the electronic display 925 comprises a single electronicdisplay or multiple electronic displays (e.g., a display for each eye ofa user). Examples of the electronic display 925 include: a liquidcrystal display (LCD), an organic light emitting diode (OLED) display,an active-matrix organic light-emitting diode display (AMOLED), someother display, or some combination thereof.

The optics block 930 magnifies image light received from the electronicdisplay 925, corrects optical errors associated with the image light,and presents the corrected image light to a user of the HMD 905. Invarious embodiments, the optics block 930 includes one or more opticalelements. Example optical elements included in the optics block 930include: an aperture, a Fresnel lens, a convex lens, a concave lens, afilter, a reflecting surface, or any other suitable optical element thataffects image light. Moreover, the optics block 930 may includecombinations of different optical elements. In some embodiments, one ormore of the optical elements in the optics block 930 may have one ormore coatings, such as anti-reflective coatings.

Magnification and focusing of the image light by the optics block 930allows the electronic display 925 to be physically smaller, weigh lessand consume less power than larger displays. Additionally, magnificationmay increase the field of view of the content presented by theelectronic display 925. For example, the field of view of the displayedcontent is such that the displayed content is presented using almost all(e.g., approximately 110 degrees diagonal), and in some cases all, ofthe user's field of view. Additionally in some embodiments, the amountof magnification may be adjusted by adding or removing optical elements.

In some embodiments, the optics block 930 may be designed to correct oneor more types of optical error. Examples of optical error include barreldistortions, pincushion distortions, longitudinal chromatic aberrations,or transverse chromatic aberrations. Other types of optical errors mayfurther include spherical aberrations, comatic aberrations or errors dueto the lens field curvature, astigmatisms, or any other type of opticalerror. In some embodiments, content provided to the electronic display925 for display is pre-distorted, and the optics block 930 corrects thedistortion when it receives image light from the electronic display 925generated based on the content.

The IMU 940 is an electronic device that generates data indicating aposition of the HMD 905 based on measurement signals received from oneor more of the position sensors 935 and from depth information receivedfrom the DMA 920. A position sensor 935 generates one or moremeasurement signals in response to motion of the HMD 905. Examples ofposition sensors 935 include: one or more accelerometers, one or moregyroscopes, one or more magnetometers, another suitable type of sensorthat detects motion, a type of sensor used for error correction of theIMU 940, or some combination thereof. The position sensors 935 may belocated external to the IMU 940, internal to the IMU 940, or somecombination thereof.

Based on the one or more measurement signals from one or more positionsensors 935, the IMU 940 generates data indicating an estimated currentposition of the HMD 905 relative to an initial position of the HMD 905.For example, the position sensors 935 include multiple accelerometers tomeasure translational motion (forward/back, up/down, left/right) andmultiple gyroscopes to measure rotational motion (e.g., pitch, yaw,roll). In some embodiments, the IMU 940 rapidly samples the measurementsignals and calculates the estimated current position of the HMD 905from the sampled data. For example, the IMU 940 integrates themeasurement signals received from the accelerometers over time toestimate a velocity vector and integrates the velocity vector over timeto determine an estimated current position of a reference point on theHMD 905. Alternatively, the IMU 940 provides the sampled measurementsignals to the console 910, which interprets the data to reduce error.The reference point is a point that may be used to describe the positionof the HMD 905. The reference point may generally be defined as a pointin space or a position related to the HMD's 905 orientation andposition.

The IMU 940 receives one or more parameters from the console 910. Asfurther discussed below, the one or more parameters are used to maintaintracking of the HMD 905. Based on a received parameter, the IMU 940 mayadjust one or more IMU parameters (e.g., sample rate). In someembodiments, certain parameters cause the IMU 940 to update an initialposition of the reference point so it corresponds to a next position ofthe reference point. Updating the initial position of the referencepoint as the next calibrated position of the reference point helpsreduce accumulated error associated with the current position estimatedthe IMU 940. The accumulated error, also referred to as drift error,causes the estimated position of the reference point to “drift” awayfrom the actual position of the reference point over time. In someembodiments of the HMD 905, the IMU 940 may be a dedicated hardwarecomponent. In other embodiments, the IMU 940 may be a software componentimplemented in one or more processors.

The I/O interface 915 is a device that allows a user to send actionrequests and receive responses from the console 910. An action requestis a request to perform a particular action. For example, an actionrequest may be an instruction to start or end capture of image or videodata or an instruction to perform a particular action within anapplication. The I/O interface 915 may include one or more inputdevices. Example input devices include: a keyboard, a mouse, a gamecontroller, or any other suitable device for receiving action requestsand communicating the action requests to the console 910. An actionrequest received by the I/O interface 915 is communicated to the console910, which performs an action corresponding to the action request. Insome embodiments, the I/O interface 915 includes an IMU 940, as furtherdescribed above, that captures calibration data indicating an estimatedposition of the I/O interface 915 relative to an initial position of theI/O interface 915. In some embodiments, the I/O interface 915 mayprovide haptic feedback to the user in accordance with instructionsreceived from the console 910. For example, haptic feedback is providedwhen an action request is received, or the console 910 communicatesinstructions to the I/O interface 915 causing the I/O interface 915 togenerate haptic feedback when the console 910 performs an action.

The console 910 provides content to the HMD 905 for processing inaccordance with information received from one or more of: the DMA 920,the HMD 905, and the VR I/O interface 915. In the example shown in FIG.1, the console 910 includes an application store 950, a tracking module955 and a content engine 945. Some embodiments of the console 910 havedifferent modules or components than those described in conjunction withFIG. 9. Similarly, the functions further described below may bedistributed among components of the console 910 in a different mannerthan described in conjunction with FIG. 9.

The application store 950 stores one or more applications for executionby the console 910. An application is a group of instructions, that whenexecuted by a processor, generates content for presentation to the user.Content generated by an application may be in response to inputsreceived from the user via movement of the HMD 905 or the I/O interface915. Examples of applications include: gaming applications, conferencingapplications, video playback applications, or other suitableapplications.

The tracking module 955 tracks movements of the HMD 905 or of the I/Ointerface 915 using information from the DMA 920, the one or moreposition sensors 935, the IMU 940 or some combination thereof. Forexample, the tracking module 955 determines a position of a referencepoint of the HMD 905 in a mapping of a local area based on informationfrom the HMD 905. The tracking module 955 may also determine positionsof the reference point of the HMD 905 or a reference point of the I/Ointerface 915 using data indicating a position of the HMD 905 from theIMU 940 or using data indicating a position of the I/O interface 915from an IMU 940 included in the I/O interface 915, respectively.Additionally, in some embodiments, the tracking module 955 may useportions of data indicating a position of the HMD 905 from the IMU 940as well as representations of the local area from the DMA 920 to predicta future location of the HMD 905. The tracking module 955 provides theestimated or predicted future position of the HMD 905 or the I/Ointerface 915 to the content engine 945.

The content engine 945 generates a 3D mapping of the area surroundingthe HMD 905 (i.e., the “local area”) based on information received fromthe DMA 920 included in the HMD 905. In some embodiments, the contentengine 945 determines depth information for the 3D mapping of the localarea based on depths determined by each pixel of the sensor in theimaging device from a phase shift determined from relative intensitiescaptured by a pixel of the sensor in multiple images. In variousembodiments, the content engine 945 uses different types of informationdetermined by the DMA 920 or a combination of types of informationdetermined by the DMA 920 to generate the 3D mapping of the local area.

The content engine 945 also executes applications within the systemenvironment 900 and receives position information, accelerationinformation, velocity information, predicted future positions, or somecombination thereof, of the HMD 905 from the tracking module 955. Basedon the received information, the content engine 945 determines contentto provide to the HMD 905 for presentation to the user. For example, ifthe received information indicates that the user has looked to the left,the content engine 945 generates content for the HMD 905 that mirrorsthe user's movement in a virtual environment or in an environmentaugmenting the local area with additional content. Additionally, thecontent engine 945 performs an action within an application executing onthe console 910 in response to an action request received from the I/Ointerface 915 and provides feedback to the user that the action wasperformed. The provided feedback may be visual or audible feedback viathe HMD 905 or haptic feedback via the I/O interface 915.

Additional Configuration Information

The foregoing description of the embodiments of the disclosure has beenpresented for the purpose of illustration; it is not intended to beexhaustive or to limit the disclosure to the precise forms disclosed.Persons skilled in the relevant art can appreciate that manymodifications and variations are possible in light of the abovedisclosure.

Some portions of this description describe the embodiments of thedisclosure in terms of algorithms and symbolic representations ofoperations on information. These algorithmic descriptions andrepresentations are commonly used by those skilled in the dataprocessing arts to convey the substance of their work effectively toothers skilled in the art. These operations, while describedfunctionally, computationally, or logically, are understood to beimplemented by computer programs or equivalent electrical circuits,microcode, or the like. Furthermore, it has also proven convenient attimes, to refer to these arrangements of operations as modules, withoutloss of generality. The described operations and their associatedmodules may be embodied in software, firmware, hardware, or anycombinations thereof.

Any of the steps, operations, or processes described herein may beperformed or implemented with one or more hardware or software modules,alone or in combination with other devices. In one embodiment, asoftware module is implemented with a computer program productcomprising a computer-readable medium containing computer program code,which can be executed by a computer processor for performing any or allof the steps, operations, or processes described.

Embodiments of the disclosure may also relate to an apparatus forperforming the operations herein. This apparatus may be speciallyconstructed for the required purposes, and/or it may comprise ageneral-purpose computing device selectively activated or reconfiguredby a computer program stored in the computer. Such a computer programmay be stored in a non-transitory, tangible computer readable storagemedium, or any type of media suitable for storing electronicinstructions, which may be coupled to a computer system bus.Furthermore, any computing systems referred to in the specification mayinclude a single processor or may be architectures employing multipleprocessor designs for increased computing capability.

Embodiments of the disclosure may also relate to a product that isproduced by a computing process described herein. Such a product maycomprise information resulting from a computing process, where theinformation is stored on a non-transitory, tangible computer readablestorage medium and may include any embodiment of a computer programproduct or other data combination described herein.

Finally, the language used in the specification has been principallyselected for readability and instructional purposes, and it may not havebeen selected to delineate or circumscribe the inventive subject matter.It is therefore intended that the scope of the disclosure be limited notby this detailed description, but rather by any claims that issue on anapplication based hereon. Accordingly, the disclosure of the embodimentsis intended to be illustrative, but not limiting, of the scope of thedisclosure, which is set forth in the following claims.

What is claimed is:
 1. A depth measurement assembly (DMA) comprising: anillumination source configured to project pulses of light at one or moretemporal pulsing frequencies into a local area, wherein the pulses oflight include at least one structured light pulse that has a spatialpattern; a sensor configured to: sense the pulses of light reflectedfrom the local area, the pulses of light sensed by the senor includingthe structured light pulse, and determine, based at least in part on thepulses of light sensed by the sensor, one or more time of flight (TOF)measurements for the pulses of light; and a controller coupled to thesensor and configured to: determine a first set of estimated radialdistances to an object in the local area based on the one or more TOFmeasurements, determine a second estimated radial distance to the objectvia one or more triangulation calculations applied to the sensedstructured light pulse, and select an estimated radial distance from thefirst set of estimated radial distances, based in part on the secondestimated radial distance.
 2. The DMA of claim 1, wherein theillumination source is configured to project pulses of structured lightat a first temporal pulsing frequency at a first time, and at a secondtemporal pulsing frequency at a second time subsequent to the firsttime.
 3. The DMA of claim 2, wherein the sensor, for each of the firsttemporal pulsing frequency and the second temporal pulsing frequency, isconfigured to: capture a first raw data using a first gated shutterwindow with a first timing shift; capture a second raw data in a secondgated shutter window with a second timing shift; and capture a third rawdata in a third gated shutter window with a first timing shift.
 4. TheDMA of claim 3, wherein the first raw data at the first temporal pulsingfrequency is read out prior to capturing the second raw data, and thesecond raw data at the first temporal pulsing frequency is read outprior to capturing the third raw data at the first temporal pulsingfrequency.
 5. The DMA of claim 2, wherein the sensor comprises aplurality of augmented pixels, and each augmented pixel includes threecharge storage regions, wherein at the first temporal pulsing frequency,a first charge storage region collects charge associated with a firstraw capture in a first gated shutter window with a first timing shift, asecond set of charge storage regions collects charge associated with thefirst raw capture in a second gated shutter window with a second timingshift, and a third set of charge storage regions collects chargeassociated with the first raw capture in a third gated shutter windowwith a third timing shift.
 6. The DMA of claim 5, wherein at the secondtemporal pulsing frequency the first charge storage region collectscharge associated with a second raw capture in a first gated shutterwindow with a first timing shift, the second set of charge storageregions collects charge associated with the second raw capture in asecond gated shutter window with a second timing shift, and the thirdset of charge storage regions collects charge associated with the secondraw capture in a third gated shutter window with a third timing shift.7. The DMA of claim 6, wherein the first raw capture at the firsttemporal pulsing frequency is read out prior to the second raw captureat the second temporal pulsing frequency.
 8. The DMA of claim 1, whereinthe projected pulses of light are composed of flood illuminationoverlaid with the spatial pattern, wherein the spatial pattern is a dotpattern and each dot in the dot pattern has a brightness that isbrighter than a brightness of the flood illumination.
 9. The DMA ofclaim 1, wherein the projected pulses of light are composed of floodillumination overlaid with the spatial pattern, wherein the spatialpattern is a dot pattern and each dot in the dot pattern has abrightness value that is less than a brightness value of the floodillumination.
 10. The DMA of claim 1, wherein a distance between thelight projector and the sensor is 50 mm or less.
 11. The DMA of claim 1,wherein the controller is further configured to obtain a depth map ofthe local area based on the selected estimated radial distance from thefirst set of radial distances.
 12. A method comprising: determining afirst set of estimated radial distances to an object in a local areabased on one or more TOF measurements, the one or more TOF measurementsdetermined using sensed reflections of at least some of a plurality ofpulses of light that were projected into the local area, wherein thepulses of light are at one or more temporal pulsing frequencies andinclude at least one structured light pulse that has a spatial pattern;determining a second estimated radial distance to the object via one ormore triangulation calculations applied to the sensed structured lightpulse; and selecting an estimated radial distance from the first set ofestimated radial distances, based in part on the second estimated radialdistance.
 13. The method of claim 12, further comprising: projecting thepulses of light at the one or more temporal pulsing frequencies into thelocal area.
 14. The method of claim 13, further comprising: sensing thepulses of light reflected from the local area, the sensed pulsesincluding the structured light pulse; and determining, based at least inpart on the sensed pulses, the one or more time of flight (TOF)measurements.
 15. The method claim 14, wherein projecting the pulses oflight at the one or more temporal pulsing frequencies into the localarea, comprises: projecting pulses of structured light at a firsttemporal pulsing frequency at a first time, and at a second temporalpulsing frequency at a second time subsequent to the first time.
 16. Themethod of claim 14, wherein for each of the first temporal pulsingfrequency and the second temporal pulsing frequency, the method furthercomprises: capturing a first raw data using a first gated shutter windowwith a first timing shift; capturing a second raw data in a second gatedshutter window with a second timing shift; and capturing a third rawdata in a third gated shutter window with a first timing shift.
 17. Themethod of claim 12, wherein the pulses of light are composed of floodillumination overlaid with the spatial pattern, wherein the spatialpattern is a dot pattern and each dot in the dot pattern has abrightness that is brighter than a brightness of the flood illumination.18. The method of claim 12, wherein the pulses of light are composed offlood illumination overlaid with the spatial pattern, wherein thespatial pattern is a dot pattern and each dot in the dot pattern has abrightness value that is less than a brightness value of the floodillumination.
 19. The method of claim 12, the method further comprising:obtaining a depth map of the local area based on the selected estimatedradial distance from the first set of radial distances.
 20. Anon-transitory computer readable medium configured to store program codeinstructions, when executed by a processor, cause the processor toperform steps comprising: determining a first set of estimated radialdistances to an object in a local area based on one or more TOFmeasurements, the one or more TOF measurements determined using sensedreflections of at least some of a plurality of pulses of light that wereprojected into the local area, wherein the pulses of light are at one ormore temporal pulsing frequencies and include at least one structuredlight pulse that has a spatial pattern; determining a second estimatedradial distance to the object via one or more triangulation calculationsapplied to the sensed structured light pulse; and selecting an estimatedradial distance from the first set of radial distances, based in part onthe second estimated radial distance.